/* dujinfang@gmail.com */
                                     
#ifndef SWITCH_REC_PAYLOAD_H
#define SWITCH_REC_PAYLOAD_H    
              
#include <switch.h>
#include <private/switch_core_pvt.h>

struct payload_recording_file_handler {
	int r_fd;
	int w_fd;
};

typedef struct payload_recording_file_handler  payload_recording_file_handler_t;

SWITCH_DECLARE(switch_status_t) switch_record_session_payload(switch_core_session_t *session, char *file, uint32_t limit);
       
SWITCH_DECLARE(switch_status_t) switch_stop_record_session_payload(switch_core_session_t *session, const char *file);
      
//static switch_bool_t record_payload_callback(switch_media_bug_t *bug, void *user_data, switch_abc_type_t type);
#endif

SWITCH_DECLARE(switch_status_t) switch_payload_play_file(switch_core_session_t *session, switch_file_handle_t *fh, const char *file, switch_input_args_t *args); 
